import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App'
import A from './components/A'
import B from './components/B'

Vue.config.productionTip = false
Vue.use(VueRouter)

//Routes
const routes = [
  {path:'/A',component:A},
  {path:'/B',component:B},
]
//Router
const router = new VueRouter({
  routes
})

new Vue({
  el: "#app",
  components:{
    App
  },
  template:"<App></App>",
  router
})

